#ifndef ICEPLAYERWINDOW_H
#define ICEPLAYERWINDOW_H

#include <QtGui/QMainWindow>
#include "mplayercontroller.h"
class QAction;
class QLCDNumber;
class QToolBar;
class QToolButton;
class QSlider;
class QGraphicsView;
class QTimer;
class QDial;

class IcePlayerWindow : public QMainWindow
{
    Q_OBJECT
public:
    IcePlayerWindow(QWidget *parent = 0);
    ~IcePlayerWindow();
private:
    void createActions();
    void createToolBar();
    void createTimer();
    void createWidgets();
    void createLayout();
    void createConnections();

    QAction *chooseVideoAction;
    QAction *playOrPauseAction;
    QAction *stopAction;
    QAction *fullScreenAction;
    QAction *settingAction;
    QToolBar *toolbar;
    QLCDNumber *timeLcd;
    QSlider *seekSlider;
    QGraphicsView *mainGraphics;
    QTimer *stopwatchTimer;
    MPlayerController *mplayerController;
    QDial *volumeDial;
    QString currentMediaFile;
private slots:
    void playOrPause();
    void stop();
    void chooseVideo(QString * = NULL);
    void setting();
    void stateChanged(enum MPlayerController::State);
    void displayTotalTime(int sec);
    void displayCurrentTime(int sec);
};

#endif // ICEPLAYERWINDOW_H
